package com.syq.personal.controller;



import com.syq.personal.dto.DTO;
import com.syq.personal.service.PersonalService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


@RestController
public class PersonalController {



    @Resource
    PersonalService personalService;
    @RequestMapping("/personals")
    public DTO getAllJSon() throws Exception{
        return personalService.getAllPersonals();
    }

}
